package com.zhi.dao;

import com.zhi.entity.MaxValue;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

public interface MaxValueRepository extends JpaRepository<MaxValue, String>{
	

	@Query(value = "select value from max_value where code = ?1",nativeQuery = true)
	public Integer getMax(String key);

}
